#ifndef MOUSEMOVABLEDIALOG_H
#define MOUSEMOVABLEDIALOG_H

#include <QDialog>
#include <QMouseEvent>
#include <QPushButton>


class MouseMovableDialog : public QDialog
{
public:
  explicit MouseMovableDialog(QWidget *parent = 0);

protected:

  QPoint windowMouseOffset;
  void setWindowMouseOffset(QPoint value);

  void mousePressEvent(QMouseEvent *event) override;
  void mouseMoveEvent(QMouseEvent *event) override;

  void closeEvent(QCloseEvent *event) override;

  QPushButton *quitButton;
  void setupQuitButton();

};

#endif // MOUSEMOVABLEDIALOG_H
